package Test1231;

public class Test05 {
    public static void main(String[] args) {
        // (5)设计一个雇员类和部门类
        // 场景：雇员张三在开发部工作、雇员张三调换部门换成市场部
        // 要求：使用Java语言表示出上述场景
        Department department=new Department("开发部");
        Employee employee=new Employee("张三");
        employee.setDepartment(department);
        System.out.println(employee);
        System.out.println("调换：");

        Department department1=new Department("市场部");
        employee.setDepartment(department1);
        System.out.println(employee);

    }
}